﻿using System.Collections.Generic;
using System.Linq;

namespace Bricks.Validation
{

    /// <summary>
    /// 
    /// </summary>
    public static class ValidationResultExtensions
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="validationResults"></param>
        /// <returns></returns>
        public static bool IsValid(this IEnumerable<ValidationResult> validationResults)
        {
            return validationResults.Count() == 0;
        }
    }
}
